#define USE_CREATE

#include <incl.h>
#include <player.h>
#include <Object/object.h>

namespace {
	#define window_width 800
	#define window_height 600

	RenderWindow window(
		VideoMode(window_width, window_height),
		"game window", Style::Titlebar | Style::Close);
}

int main() {
	window.setVisible(true);
	window.setFramerateLimit(60);

	while (window.isOpen()) {
		Event event;
		while (window.pollEvent(event)) {
			if (event.type == Event::Closed)
				window.close();
		}

		// paint everything
		window.clear(Color::White);

		window.draw(playerBody());
		window.display();
	}
	return 0;
}